#include <iostream>
#include <algorithm>

using namespace std;

int main(){
    int x, y;
    cin >> x >> y;
    if(x < y) swap(x,y);
    if( x % y == 0)
    cout << "Sao Multiplos" ;
    else 
    cout << "Nao sao Multiplos";
    return 0;
}